home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7842 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: anvil.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: String Encryption
  5. Date: 27 Feb 1996 08:56:56 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4gvd4oINNe5n@anvil.ugrad.cs.ubc.ca>
  8. References: <1996Feb21.101532.15110@es.dupont.com> <1996Feb21.174407.20730@newshost.micro.ti.com> <4ghq1u$sed@hpbblb.bbn.hp.com> <4gqc2l$4o7@usenet.rpi.edu>
  9. NNTP-Posting-Host: anvil.ugrad.cs.ubc.ca
  10.  
  11. In article <4gqc2l$4o7@usenet.rpi.edu>,
  12. Ghost In The Machine <gentrj@cii3116-01.its.rpi.edu> wrote:
  13.  >Matthias Dittrich (matti) wrote:
  14.  >: >Malcolm Smart (MALCOLM.SMART@CONOCO.DUPONT.COM) wrote:
  15.  >: >> Has anybody out there got any small routines that I can apply to strings 
  16.  >: >> which will effectively encrypt them (and decrypt!).  It's not a matter of 
  17.  >: >> state security so it doesn't have to be that secure, just make it 
  18.  >: >> unreadable.  
  19.  >
  20.  >: You also can use the crypt() function (see man 3 crypt).
  21.  >
  22.  >I could be wrong here (so please correct me if I am), but isn't
  23.  >crypt() a one way encryption?  I just checked man 3 crypt, and
  24.  >found this:
  25.  
  26. Yeah. That's just a phrase. There is no such thing as ``one way encryption''.
  27. Encryption means that the recipient of a message can recover the plaintext from
  28. the ciphertext. Better terms are ``hashing'' or ``message digest''. Calling the
  29. function crypt() is a little misleading, though everyone has grown accustomed
  30. to calling it encryption.
  31. -- 
  32.  
  33.